<?php

function unsDepartement_getAllLevels() {

    global $babDB;


    $res = $babDB->db_query("select id, level_name as name, level_year as year from " . UNSDEPARTEMENT_LEVELS_TABLE_NAME);

    $levels = array();
    $i = 0;
    while ($arr = $babDB->db_fetch_array($res)) {
        $levels[$i] = $arr;
        $i++;
    }
    return $levels;
}

?>
